package container

import "github.com/spf13/cobra"

func GetContainerCmd() *cobra.Command {
	containerCmd := &cobra.Command{
		Use:   "container [create/inspect/start/stop/kill/restart/remove/rename/resize]",
		Short: "operations of containers",
		Long:  `the operations of the containers for example:start, create, remove`,
		Args:  cobra.MinimumNArgs(0),
		Run:   handle,
	}
	containerCmd.AddCommand(
		GetContainerCreateCmd(),
		GetContainerKillCmd(),
		GetContainerRemoveCmd(),
		GetContainerRenameCmd(),
		GetContainerRestartCmd(),
		GetContainerStartCmd(),
		GetContainerStopCmd(),
		GetContainerInspectCmd(),
		GetContainerListCmd(),
		GetContainerPauseCmd(),
		GetContainerUnpauseCmd(),
		GetContainerWaitCmd(),
	)
	return containerCmd
}

func handle(cmd *cobra.Command, args []string) {
	_ = cmd.Help()
}
